package PAT.乙.模拟;

import java.util.Scanner;

/**
 * A加B和C
 *
 * @author yang
 * @date 2021/12/15
 */
public class A加B和C {


    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = 1;
        int n = sc.nextInt();
        for (int i = 0; i < n; i++) {
            double A = sc.nextInt();
            double B = sc.nextInt();
            double C = sc.nextInt();
            if (A + B > C) {

                System.out.println("Case #" + num +": " + true);
                num++;
            }
            else {

                System.out.println("Case #"+ num +": " + false);
                num++;
            }
        }
    }
}
